/* 
 * File:   ParticleSystemParser.h
 * Author: RedEyedKiller
 *
 * Created on 20 Αύγουστος 2010, 12:22 πμ
 */

#ifndef PARTICLESYSTEMPARSER_H
#define	PARTICLESYSTEMPARSER_H

#include <list>
#include <vector>
#include "../physics/ParticleSystem.h"
#include "IntermidiateParser.h"

namespace TiXML
{
class TiXmlElement;
}

namespace FileParser
{

class ParticleSystemParser : public IntermidiateParser
{
public:
    ParticleSystemParser(const char* name,physicsSystem::particleSystem::ParticleSystem* system);
    bool ParseSystem();
protected:
    bool ParseParticle(TiXML::TiXmlElement* xPart);
    bool ParseEmiter(TiXML::TiXmlElement* xEmiter);    
private:
    std::string fname;
    physicsSystem::particleSystem::ParticleSystem* system;
    physicsSystem::particleSystem::ParticleEmiterPrototype emiter;
};

};
#endif	/* PARTICLESYSTEMPARSER_H */

